package com.elh.jvm.classpath;

import cn.hutool.core.util.ZipUtil;

/**
 * ZIP或JAR文件形式的类路径
 *
 * @author liulei
 **/
public class ZipEntry extends AbstractEntry implements  Entry{

    private String path;

    public ZipEntry(String path) {
        this.path = path;
    }

    @Override
    public byte[] readClass(String className) {
        return ZipUtil.unzipFileBytes(path,className);
    }
}
